package com.skivingcloud.workflow.api.feignclient;

import com.skivingcloud.common.utils.ReturnT;
import com.skivingcloud.workflow.api.entity.TaskParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author hushouquan
 * @since 2024/3/14
 */
@FeignClient(name="example-server/workflow/process", fallback=ProcessFeignServiceFallback.class)
public interface ProcessFeignService{
    
    /**
     * 流程提交方法
     * @param taskParam 参数
     * @return 结果
     */
    @PostMapping("/submitTask")
    ReturnT<String> submitTask(@RequestBody TaskParam taskParam);
}
